package com.base.power.demo.sys.service;

import com.base.power.demo.common.base.dao.GenericDao;
import com.base.power.demo.common.base.service.GenericService;
import com.base.power.demo.sys.dao.DictDao;
import com.base.power.demo.sys.entity.Dict;
import com.base.power.demo.sys.entity.QueryDict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 类描述：数据字典的service业务逻辑
 */
@Service
@Transactional(rollbackFor={IllegalArgumentException.class})
public class DictService extends GenericService<Dict,QueryDict> {

    @Autowired
    private DictDao dictDao;

    @Override
    protected GenericDao<Dict, QueryDict> getDao() {
        return dictDao;
    }
}
